package com.maxd.modules.agreement.respository;


import com.maxd.modules.agreement.entity.Agreement;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AgreementRepository extends JpaRepository<Agreement, Long> {

    /**
     * 分页条件查询
     *
     * @param specification 查询条件
     * @param pageable      分页条件
     * @return
     */
    Page<Agreement> findAll(Specification<Agreement> specification, Pageable pageable);

}
